package com.ruoyi.system.Fdongbei.mapper;

import com.ruoyi.system.Fdongbei.domain.TbLog;
import com.ruoyi.system.Fdongbei.mapper.provider.TbLogSqlProvider;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author fufeng
 * @since 2025-01-09
 */
public interface TbLogMapper {


    @Insert(" insert tb_log (bmbh,name,dh,text,time)values(#{bmbh},#{name},#{dh},#{text},#{time})")
    int insertLog(TbLog tbLog);


    @SelectProvider(type = TbLogSqlProvider.class, method = "selectLogSql")
    List<TbLog> selectLog(
            @Param("date") String date,
            @Param("date2") String date2,
            @Param("text") String text
    );


}
